<?php 
namespace app\index\model;
use think\Model;
/**
* 
*/
class Good extends Model
{
	//修改
	public function updateGood($arr)
	{
		  return $this->where('goods_name',$arr['id'])->update($arr);
	}
	//搜索
	public function getsearch($page,$limit,$search)
	{
		 $name=$search['key']['name'];
		 return $this->where('goods_name','like',"%$name%")->paginate($limit,false,['page'=>$page]);
	}
	
}







 ?>